/*
 Copyright 2007 Razvan Taranu

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 */
package generators;

import java.util.List;
import java.util.Map;

import com.thoughtworks.qdox.model.BeanProperty;
import com.thoughtworks.qdox.model.JavaClass;
import com.thoughtworks.qdox.model.JavaSource;

public class BeanInfo {
    private JavaSource javaSource;
    private JavaClass javaClass;
    private List<BeanProperty> properties;
    private Map<BeanProperty, String> genericTypes;

    public JavaSource getJavaSource() {
        return javaSource;
    }

    public void setJavaSource(JavaSource javaSource) {
        this.javaSource = javaSource;
    }

    public JavaClass getJavaClass() {
        return javaClass;
    }

    public void setJavaClass(JavaClass javaClass) {
        this.javaClass = javaClass;
    }

    public List<BeanProperty> getProperties() {
        return properties;
    }

    public void setProperties(List<BeanProperty> properties) {
        this.properties = properties;
    }

    public String getGenericType(BeanProperty property) {
        return this.genericTypes.get(property);
    }

    public Map<BeanProperty, String> getGenericTypes() {
        return genericTypes;
    }

    public void setGenericTypes(Map<BeanProperty, String> genericTypes) {
        this.genericTypes = genericTypes;
    }

}
